package cn.yeziji.forum.exception;

import cn.yeziji.forum.common.enums.status.QuestionStatus;
import lombok.Data;

/**
 * 问题异常类
 *
 * @author gzkemays
 * @since 2022/11/13 9:27 PM
 */
@Data
public class QuestionException extends ForumException {
  int code;
  String msg;

  public QuestionException(QuestionStatus status) {
    this.code = status.getCode();
    this.msg = status.getMsg();
  }
}
